const http = require('http');

const router = require("./router.js")


//创建服务器
const server = http.createServer()

server.on('request', (req, res) => {

    router(req, res);

});
server.listen(8090, '192.168.3.191',function () {

    console.log('http://192.168.3.191:8090');

});
// server.listen(8000, '192.168.8.100',function () {
    
//         console.log('http://192.168.8.100:8000');
    
//     });